Contents | Index | < Browse | Browse >

LETTERtmpfileULETTER Creates a temporary file.

Overview
#include <stdio.h>

f = tmpfile();

FILE *f;

Portability
ANSI

Description
Creates and opens a new file with a unique filename for temporary usage. The file is usually closed at program termination.

Returns
A "FILE *" pointer to the file.

See also
tmpnam , fopen , fclose